package com.ljh.onlinetest.service;

import com.github.pagehelper.PageInfo;
import com.ljh.onlinetest.domain.User;
import com.ljh.onlinetest.domain.other.KeyValue;
import com.ljh.onlinetest.repository.BaseMapper;
import com.ljh.onlinetest.viewmodel.admin.user.UserPageRequestVM;
import com.ljh.onlinetest.viewmodel.admin.user.UserResponseVM;

import java.util.List;

/**
 * @author ljh
 * @ClassName UserService.java
 * @createTime 2021年12月30日
 */
public interface UserService extends BaseService<User>{
    User getUserByUserName(String username);

    PageInfo<User> userPage(UserPageRequestVM model);

    User getUserById(Integer id);

    List<User> selectByIds(List<Integer> receiveUserIds);

    List<KeyValue> selectByUserName(String userName);
}
